<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="parent">
        <p class="one">1</p>
        <p class="one">2</p>
        <p class="one">3</p>
    </div>
    <script>
        var parent = document.getElementById("parent");
        var childs = parent.children;
        console.log(childs);
        var firstChild = parent.firstChild;
        var firstElement = parent.firstElementChild;
        console.log(firstChild);
        console.log(firstElement);
        var lastChild = parent.lastChild;
        var lastElement = parent.lastElementChild;
        console.log(lastChild);
        console.log(lastElement);
    </script>
</body>
</html>